package com.haierp.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotations.IdType;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.wangzhixuan.commons.utils.JsonUtils;

/**
 * 
 * Title: UserRoleHai.java
 * Description: 
 *
 * @author jc
 * Apr 17, 2017
 *
 */
@TableName(value = "item_buyer")
public class ItemBuyer implements Serializable {

	@TableField(exist = false)
	private static final long serialVersionUID = 1L;

	/** 主键id */
	@TableId(type = IdType.AUTO)
	private Long id;

	/** 商品id */
	@TableField(value = "user_id")
	private Long itemId;

	/** 买手id */
	@TableField(value = "buyer_id")
	private Long buyerId;

	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public Long getItemId() {
		return itemId;
	}

	public void setItemId(Long itemId) {
		this.itemId = itemId;
	}

	public Long getBuyerId() {
		return buyerId;
	}

	public void setBuyerId(Long buyerId) {
		this.buyerId = buyerId;
	}

	public static long getSerialversionuid() {
		return serialVersionUID;
	}

	@Override
	public String toString() {
		return JsonUtils.toJson(this);
	}
}
